package com.logos.io;

import java.io.*;

public class changeStream {
    public static void main(String[] args) {
        // 转换流
        InputStreamReader isr = new InputStreamReader(System.in);
        OutputStreamWriter osw = new OutputStreamWriter(System.out);
        try (BufferedReader reader = new BufferedReader(isr);
             BufferedWriter writer = new BufferedWriter(osw)) {
            System.out.println("请输入一些文本：");
            String input = reader.readLine();
            System.out.println("你输入的文本是：" + input);
            // 将输入的文本转换为大写并输出
            writer.write(input.toUpperCase());
            writer.newLine();
            writer.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
